

var cityData = [];

var cityDataJS = {
    GetProvince: function (c1) {
        var pp = [];

        ComFunJS.getJSON("BASE_GETCITY2", function (r) {
            pp = r.result;

        })

    },
    GetCity: function (c1) {
        var pp = [];
        if (cityData3) {
            for (var i = 0; i < cityData3.length; i++) {
                if (c1 && c1 == cityData3[i].label) {
                    var cc = cityData3[i].children;
                    for (var j = 0; j < cc.length; j++) {
                        {
                            pp.push({ value: cc[j].value, label: cc[j].label });
                        }

                    }
                }
            }
        }
        return pp;
    },
    GetCounty: function (c1, c2) {
        var pp = [];
        if (cityData3) {
            for (var i = 0; i < cityData3.length; i++) {
                if (c1 && c1 == cityData3[i].label) {
                    var cc = cityData3[i].children;
                    for (var j = 0; j < cc.length; j++) {
                        {
                            if (c2 && c2 == cc[j].label) {
                                var cc2 = cc[j].children;
                                for (var k = 0; k < cc2.length; k++) {
                                    {
                                        pp.push({ value: cc2[k].value, label: cc2[k].label });
                                    }

                                }
                            }
                        }

                    }
                }
            }
        }
        return pp;
    }


};
